﻿@model Domain.Entities.User

@{
    ViewBag.Title = "Информация о пользователе";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}

<h2>Информация о пользователе</h2>

<fieldset>
    <legend>Пользователь</legend>

    <div class="display-label">Логин</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Login)
    </div>

    <div class="display-label">E-mail</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Email)
    </div>

    <div class="display-label">Имя</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
    </div>

    <div class="display-label">Фамилия</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.LastName)
    </div>
    
    <div class="display-label">Отчество</div>
    <div class="display-field">
        @Html.DisplayFor(model => model.MiddleName)
    </div>

 
 
    @if (Model.Address != null)
    {
        <div class="display-label">Адресс</div>
        <div class="display-field">
        @Html.DisplayFor(model => model.Address)
    </div>
    }
    
    @if (Model.City != null)
    {
        <div class="display-label">Город</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.City)
        </div>
    }
    @if (Model.State != null)
    {
        <div class="display-label">Штат</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.State)
        </div>
    }
    
    @if (Model.PostalCode != null)
    {
        <div class="display-label">Почтовый индекс</div>
        <div class="display-field">
            @Html.DisplayFor(model => model.PostalCode)
        </div>
    }
     @if (Model.Phone != null)
     {
         <div class="display-label">Телефон</div>
         <div class="display-field">
             @Html.DisplayFor(model => model.Phone)
         </div>
     }
</fieldset>
<p>
    @Html.ActionLink("Редактировать", "EditeUser", new { id=Model.Id }) |
    @Html.ActionLink("К списку пользователей", "BrowseUsers")
</p>
